<?php
// date_default_timezone_set('America/Argentina/Buenos_Aires');

// $dt = new DateTime('1 May 2011 14:15', new DateTimeZone('America/Los_Angeles'));
// echo checkdate();

echo date_default_timezone_get();

echo "<br>";
echo "<br>";


$date = new DateTime();
$fecha = $date->format('Y-m-d H:i:s'); 

echo $fecha;
//echo date( "Y-m-d H:i:s", time() );

echo "<br>";
echo "<br>";

$dt = new DateTime(NULL, new DateTimeZone('America/Los_Angeles'));
// returns: LA:	Sun, 01 May 2011 14:15:00 -0700
echo "LA:\t". $dt->format('r') . PHP_EOL;

echo "<br>";
echo "<br>";

$dt->setTimeZone(new DateTimeZone('America/Argentina/Buenos_Aires'));
echo "Buenos_Aires:\t". $dt->format('r') . PHP_EOL;

echo "<br>";
echo "<br>";

$dt->setTimeZone(new DateTimeZone('America/Lima'));
echo "America/Lima:\t". $dt->format('r') . PHP_EOL;

?>